-- Leviathan (c) v.v.balashoff
local Class = require('leviathan/Class')

local ViewerComponent = Class:derive('ViewerComponent')

function ViewerComponent:new(name, x, y, source)
    self.id = 'ViewerComponent'
    self.typeId = 'Renderable'
    self.drawable = false
    self.enabled = true

    self.name = name or self.id
    self.x = x
    self.y = y
    self.source = source
    self.buffer = nil
end

return ViewerComponent
